package hongcaosp.app.android.modle.bean;

import com.alibaba.fastjson.annotation.JSONField;

import hongcaosp.app.android.comment.IViewType;

public class User implements IUser {
    @JSONField(name = "id")
    private long id;
    @JSONField(name = "image")
    private String image;
    @JSONField(name = "nickname")
    private String nickname;
    @JSONField(name = "meFollowmTa")
    private boolean meFollowmTa;
    @JSONField(name = "taFollowMe")
    private boolean taFollowMe;
    @JSONField(name = "userComment")
    private String userComment;

    private int viewType = IViewType.VIEWTYPE_CONTACT;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public boolean isMeFollowmTa() {
        return meFollowmTa;
    }

    public void setMeFollowmTa(boolean meFollowmTa) {
        this.meFollowmTa = meFollowmTa;
    }

    public boolean isTaFollowMe() {
        return taFollowMe;
    }

    public void setTaFollowMe(boolean taFollowMe) {
        this.taFollowMe = taFollowMe;
    }

    public void setUserComment(String userComment) {
        this.userComment = userComment;
    }


    @Override
    public String getUserLogo() {
        return image;
    }

    @Override
    public String getUserName() {
        return nickname;
    }

    @Override
    public long getUserId() {
        return id;
    }

    @Override
    public String getUserComment() {
        return userComment;
    }

    @Override
    public boolean meFollowTa() {
        return meFollowmTa;
    }

    @Override
    public boolean taFollowMe() {
        return taFollowMe;
    }

    @Override
    public void setMeFollowTa(boolean isFollow) {
        setMeFollowmTa(isFollow);
    }

    public void setViewType(int viewType) {
        this.viewType = viewType;
    }

    @Override
    public int viewType() {
        return viewType;
    }
}
